package com.probox.common.core.enums;

public enum ActivityTypeEnum {
    //bargain砍价/seckill秒杀/limittime限时/group拼团/free新人免费领/packages套餐/score积分兑换
    bargain("bargain","砍价"),
    seckill("seckill","秒杀"),
    limitTime("limitTime","限时购"),
    group("group","拼团"),
    free("free","新人免费领"),
    packages("packages","套餐"),
    score("score","积分兑换"),
    recharge("recharge","充值套餐"),
    newJava("new","新人购");


    private ActivityTypeEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(ActivityTypeEnum oe: ActivityTypeEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }

}
